package com.xinnet.mms.quartz.service;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinnet.mms.entity.Customer;
import com.xinnet.mms.quartz.dao.JobTimeDao;
import com.xinnet.mms.quartz.job.JobTimeService;

@Service("jobTimeService")
public class JobTimeServiceImpl implements JobTimeService {

	@Autowired
	private JobTimeDao jobTimeDao;
	
	@Override
	public void updateJobTime(Customer customer) throws SQLException {
		jobTimeDao.updateJobTime(customer);
	}

	@Override
	public Customer getJobTime(String jobType) throws SQLException {
		return jobTimeDao.getJobTime(jobType);
	}

	@Override
	public void addJobTime(Customer customer) throws SQLException {
		jobTimeDao.addJobTime(customer);
	}

}
